<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜单管理</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<!-- 公共引入 -->
<script type="text/javascript" src="/panda/include/include.js"></script>
<style type="text/css">
.hiddenDiv{
	display:none;
}
.formClass{
	margin-top: 20px;
    padding-right: 50px;
}
</style>
</head>
<body>

	<form class="layui-form formClass" action="">
		<div class="layui-form-item">
			<label class="layui-form-label">菜单名称</label>
			<div class="layui-input-block">
				<input type="text" id="menuName" name="menuName" required lay-verify="required"
					placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">菜单编号</label>
			<div class="layui-input-block">
				<input type="text" id="menuCode" name="menuCode" required lay-verify="required"
					placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">菜单级别</label>
			<div class="layui-input-block">
				<select id="level" name="level" lay-verify="required" lay-filter="level">
					<option value="1">第一级菜单</option>
					<option value="2">第二级菜单</option>
				</select>
			</div>
		</div>
		<div class="layui-form-item hiddenDiv" id="parentInfoDiv">
			<label class="layui-form-label">父级菜单</label>
			<div class="layui-input-block">
				<input type="text" id="parentCode" name="parentCode" required lay-verify="required"
					placeholder="" autocomplete="off" class="layui-input">
				<input type="text" id="parentName" name="parentName" required lay-verify="required"
					placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item hiddenDiv" id="urlDiv">
			<label class="layui-form-label">菜单路径</label>
			<div class="layui-input-block">
				<input type="text" id="url" name="url" required lay-verify="required"
					placeholder="" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否有效</label>
			<div class="layui-input-block">
				<select id="status" name="status" lay-verify="required">
					<option value="1">有效</option>
					<option value="0">无效</option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button type="button" id="save" class="layui-btn">保存</button>
				<button type="button" id="back" class="layui-btn">返回</button>
			</div>
		</div>
	</form>

	<script type="text/javascript" src="/panda/menu/js/menuAdd.js"></script>

</body>
</html>